package demo2;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * @Author 12629
 * @Description：
 */
public class Test1 {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList1 = new ArrayList<>();

        List<Integer> arrayList2 = new ArrayList<>();//顺序表

    }
    public static void main2(String[] args) {
        SeqList seqList = new SeqList();
        for (int i = 0; i < 10; i++) {
            seqList.add(i,i);
        }
        seqList.display();
       /* try {
            seqList.get(100);
        }catch (PosOutBoundsException e) {
            e.printStackTrace();
            System.out.println("fdsfsasafa");
        }*/
        /////////
    }
    public static void main1(String[] args) {
        List<Integer> stack = new Stack<>();//栈
        List<Integer> arrayList = new ArrayList<>();//顺序表
        List<Integer> linkedList = new LinkedList<>();// 链表
    }
}
